const {ccclass, property} = cc._decorator;

@ccclass
export default class SplashScene extends cc.Component {
    

    @property(cc.Label)
    label: cc.Label = null;
    static eventTarget: any;

    start () {
        // init logic
        this.label.string = '加载场景';
        setTimeout(()=>{
            SplashScene.eventTarget = new cc.EventTarget();
            cc.director.loadScene('StartScene',()=>{
                console.log('>>StartScene Launch Callback!');
            });
        }, 1);
    }
}
